import Vue from 'vue'
import VueRouter from 'vue-router'

import login from "../login.vue"
import index from "../index.vue"
import userManager from "../pages/userManager.vue"
import roleManager from "../pages/RoleManager.vue"
import count from "../pages/count.vue"


Vue.use(VueRouter)

const routes = [ 
    {path:'/login',component:login},
    {path:'/index',component:index,
       children:[
        {path:'/index/user',component:userManager},
        {path:'/index/role',component:roleManager},
        {path:'/index/count',component:count},
       ]
    },
]

export default new VueRouter({
    mode:'history',
    routes
})
